'''
Created on Jun 1, 2011

@author: Steve
'''
import os, sys

import pygame #@UnresolvedImport
from pygame.sprite import Sprite #@UnresolvedImport

def run_game():
    # Game parameters
    SCREEN_WIDTH, SCREEN_HEIGHT = 400, 400
    BG_COLOR = 150, 150, 80
    clock = pygame.time.Clock()
    
    pygame.init()
    screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT), 0, 32)
    pygame.display.set_caption("test")
    quit = False

    while True:

        time_passed = clock.tick(50)
        
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()

            screen.fill(BG_COLOR)

        screen.fill(BG_COLOR)
        pygame.display.flip()
        
if __name__ == '__main__' :
    game = run_game()

